<div class="main-page">    
    <div class="content-page">  
        <img width="30%" src="<?php echo Yii::app()->createUrl($dataPost->main_image);?>">
        <div class="content">
        <?php $content = str_replace('../../files/posts/', '../files/posts/', $dataPost->content) ?>
        <?php echo $content; ?>   
        </div>
    </div>    
    
    <table width="100%" style="margin-top: 5px;">
        <tr bgcolor="#EAEAEA" style="width:100%;">
            <td>
                <hr style="border-top: solid 1px lightgray;">
                <b>Bài viết khác</b>
                <?php if(isset($modelPostDiff)):?>
                    <?php foreach($modelPostDiff as $item):?>
                    <table style="margin:2px;width:100%;">
                        <tbody>
                        <tr style="font-size:small">
                            <td width="32">
                                <a href="<?php echo $item->getDetailLink() ?>"><img width="9px" height="8px" src="<?php echo Yii::app()->createUrl('css/images/arrow-right.png') ?>"></a>	
                            </td>
                            <td><a href="<?php echo $item->getDetailLink(); ?>"><?php echo $item->title ?></a></td>
                        </tr>
                        </tbody>
                    </table>			
                    <?php endforeach;?>
                <?php endif;?>
            </td>                            
        </tr>
    </table>
</div>

